aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice/[id]/+layout.server.ts
Commit message (Collapse)AuthorAgeFilesLines
* invoice: a reusable bolt12 offer has no terminal paid stateAdam Soltys2026-09-221-5/+29
| | | | | | | | | | | | | | | | | | | | | A bolt12 offer is a standing payment code. CLN derives the same offer_id from the same (amount, description), so re-creating one hands back the original record, whose `received` has accumulated over the offer's whole lifetime. The invoice layout read that as "this invoice was paid" and redirected to the success screen, so reopening a long-lived offer never showed the QR and left no way to copy the lno. Treat a payment as celebratory only when it arrives while the page is open: the socket handler now passes the amount of that payment as `?paid=<amount>`, and the layout uses it in place of the lifetime total for reusable offers. Single-use invoices keep the existing logic, so a partly-paid invoice still stays on the QR rather than celebrating early. The success screen showed lifetime `received` for the same reason, which misreported a single payment to a long-lived offer; it now renders the amount the socket reported, which is already net of tip. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* redirect to paid routeAdam Soltys2025-09-091-4/+4
|
* check for user in invoice routeAdam Soltys2025-09-091-2/+2
|
* prompt for tip for auto paysAdam Soltys2025-07-191-12/+16
|
* cache qrsAdam Soltys2024-12-031-3/+1
|
* lightning boltAdam Soltys2024-11-121-1/+1
|
* default light themeAdam Soltys2024-11-081-1/+1
|
* fix set amountAdam Soltys2024-11-081-1/+0
|
* svelte 5 fixupsAdam Soltys2024-11-081-0/+1
|
* theme cookieAdam Soltys2024-11-061-2/+3
|
* biomeAdam Soltys2024-10-311-28/+28
|
* pass token to invoice layoutAdam Soltys2024-10-011-2/+3
|
* invoice fixesAdam Soltys2024-09-251-1/+2
|
* progress on accountsAdam Soltys2024-09-191-20/+22
|
* remove transitionsAdam Soltys2024-09-171-0/+1
|
* self custodial sendAdam Soltys2024-09-171-4/+3
|
* move routesAdam Soltys2024-09-171-0/+36